package com.balusoft.client;

import com.balusoft.client.presenter.ContractorListPresenter;
import com.balusoft.client.presenter.FooterPresenter;
import com.balusoft.client.presenter.HeaderPresenter;
import com.balusoft.client.presenter.MenuPresenter;
import com.balusoft.client.presenter.RootPresenter;
import com.google.gwt.user.client.ui.IsWidget;
import com.mvp4g.client.annotation.Debug;
import com.mvp4g.client.annotation.Debug.LogLevel;
import com.mvp4g.client.annotation.Event;
import com.mvp4g.client.annotation.Events;
import com.mvp4g.client.annotation.Start;
import com.mvp4g.client.event.EventBus;

@Events(startPresenter = RootPresenter.class)
@Debug(logLevel = LogLevel.DETAILED)
public interface TranslationAgencyEventBus extends EventBus {

	@Start
	@Event(bind = {HeaderPresenter.class, MenuPresenter.class,FooterPresenter.class}, handlers = RootPresenter.class)
	public void start();

	@Event(handlers = RootPresenter.class)
	public void setBody(IsWidget body);
	
	@Event(handlers = ContractorListPresenter.class)
	public void goToContractor();
	
}
